package club.easin.product.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import club.easin.product.bean.Soft;
import club.easin.product.dao.SoftRepository;
import club.easin.product.dao.UseSoftRepository;
import club.easin.product.relation.UseSoftware;
import club.easin.product.service.SoftService;
@Service
public class SoftServiceImpl implements SoftService{
	
	@Autowired
	private SoftRepository softRepository;
	@Autowired
	private UseSoftRepository useSoftRepository;

	@Override
	public List<Soft> getSoftByName(String name, String stage) {
		// TODO Auto-generated method stub
		return this.softRepository.getSoftByName(name, stage);
	}

	@Override
	public List<UseSoftware> getUseSoftwares(String range, String stage) {
		// TODO Auto-generated method stub
		return this.useSoftRepository.getUseSoftwares(range, stage);
	}

	@Override
	public List<Map<String, Object>> getUseSoftMap(String rangeName, String stage) {
		// TODO Auto-generated method stub
		return this.useSoftRepository.getUseSoftMap(rangeName, stage);
	}

	@Override
	public List<Map<String,Object>> getSoftDescAndDownload(String softName) {
		// TODO Auto-generated method stub
		return this.softRepository.getSoftDescAndDownload(softName);
	}

	@Override
	public List<Map<String, Object>> getSoftmanual(String softName) {
		// TODO Auto-generated method stub
		return this.softRepository.getSoftmanual(softName);
	}

}
